<template>
    <div class="cart">
    <h2>购物车组件</h2>
    <h3>{{paramsV}}</h3>
    </div>
</template>

<script>
    export default {
        name: "Cart",
        computed:{
            paramsV(){
                return`id是:${this.$route.params.id},总量是:${this.$route.params.num},总价是:${this.$route.params.price}`;
            }
        }
    }
</script>

<style scoped>
.cart{
    width: 100%;
    height: 100%;
    background-color: darkslateblue;
}
</style>